package com.fbt.transfer.app.driver.model;

import lombok.Data;

/**
 * @author tuocoo
 * @date 2024/4/23/14:49
 */
@Data
public class AccessToken {

  /**
   * 访问token
   */
  private String token;

  /**
   * 访问token的过期时间,单位天
   */
  private Long expireIn;

  /**
   * 刷新token的过期时间默认为30天
   */
  private String refreshToken;

  private MemberVo member;

  /** 账户受限制原因 */
  private String limitReason;

  public AccessToken () {}

  public AccessToken (String token, Long expireIn, String refreshToken, MemberVo member) {
    this.token = token;
    this.expireIn = expireIn;
    this.refreshToken = refreshToken;
    this.member = member;
  }

  /**
   * 登陆后的用户信息
   * @author tuocoo
   * @date 2024/5/24/13:18
   */
  @Data
  public class MemberVo {

    private String memberId;

    private String loginName;

    private String cityId;

    /** 是否是车队长 */
    private Boolean isCheTou;
  }
}
